package com.hzi.jenkins;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@SpringBootApplication
@RestController
public class Application {

    @GetMapping("/product")
    public Map<String, Object> hello() {
        return Map.of("id", 1);
    }

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

}
